﻿using System;
using Microsoft.Xna.Framework.Graphics;
using Terraria.UI;

namespace Terraria.GameContent.UI.Elements
{
	// Token: 0x020003FB RID: 1019
	public class FixedUIScrollbar : UIScrollbar
	{
		// Token: 0x060023D0 RID: 9168 RVA: 0x00019513 File Offset: 0x00017713
		public FixedUIScrollbar(UserInterface userInterface)
		{
			this.userInterface = userInterface;
		}

		// Token: 0x060023D1 RID: 9169 RVA: 0x0047AA00 File Offset: 0x00478C00
		protected override void DrawSelf(SpriteBatch spriteBatch)
		{
			UserInterface activeInstance = UserInterface.ActiveInstance;
			UserInterface.ActiveInstance = this.userInterface;
			base.DrawSelf(spriteBatch);
			UserInterface.ActiveInstance = activeInstance;
		}

		// Token: 0x060023D2 RID: 9170 RVA: 0x0047AA2C File Offset: 0x00478C2C
		public override void MouseDown(UIMouseEvent evt)
		{
			UserInterface activeInstance = UserInterface.ActiveInstance;
			UserInterface.ActiveInstance = this.userInterface;
			base.MouseDown(evt);
			UserInterface.ActiveInstance = activeInstance;
		}

		// Token: 0x04003FFD RID: 16381
		private UserInterface userInterface;
	}
}
